<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>悬赏任务平台 - 三阶段流程</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        :root {
            --primary: #3498db;
            --secondary: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
            --light: #f8f9fa;
            --dark: #343a40;
            --gray: #6c757d;
            --border: #e0e0e0;
        }
        
        body {
            font-size: 14px;
            color: #333;
            line-height: 1.6;
            background-color: #f5f7fa;
            padding-bottom: 60px;
        }
        
        .container {
            max-width: 750px;
            margin: 0 auto;
            padding: 15px;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary), #1a5f9e);
            color: white;
            padding: 20px 15px;
            border-radius: 12px 12px 0 0;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .header h1 {
            font-size: 22px;
            font-weight: 600;
        }
        
        .badge {
            background-color: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
        }
        
        .task-info {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .task-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .task-desc {
            color: var(--gray);
            margin-bottom: 15px;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .task-meta {
            display: flex;
            justify-content: space-between;
            border-top: 1px solid var(--border);
            padding-top: 15px;
        }
        
        .meta-item {
            text-align: center;
            flex: 1;
        }
        
        .meta-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--primary);
        }
        
        .meta-label {
            font-size: 12px;
            color: var(--gray);
        }
        
        .stages {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: 8px;
            color: var(--primary);
        }
        
        .stage-timeline {
            position: relative;
            padding-left: 30px;
        }
        
        .stage-timeline::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border);
        }
        
        .stage-item {
            position: relative;
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 10px;
            background: var(--light);
            border: 1px solid var(--border);
        }
        
        .stage-item.active {
            border-color: var(--primary);
            background: rgba(52, 152, 219, 0.05);
        }
        
        .stage-item.completed {
            border-color: var(--secondary);
            background: rgba(46, 204, 113, 0.05);
        }
        
        .stage-item::before {
            content: '';
            position: absolute;
            left: -30px;
            top: 20px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--border);
            z-index: 2;
        }
        
        .stage-item.active::before {
            background: var(--primary);
            border-color: var(--primary);
        }
        
        .stage-item.completed::before {
            background: var(--secondary);
            border-color: var(--secondary);
        }
        
        .stage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .stage-name {
            font-weight: 600;
            color: var(--dark);
        }
        
        .stage-amount {
            font-weight: 600;
            color: var(--primary);
        }
        
        .stage-status {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            margin-top: 5px;
        }
        
        .status-pending {
            background: #fef9e7;
            color: #b7950b;
        }
        
        .status-active {
            background: #e8f8f5;
            color: #28b463;
        }
        
        .status-completed {
            background: #eafaf1;
            color: #239b56;
        }
        
        .executors {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .executor-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .executor-card {
            display: flex;
            align-items: center;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: all 0.3s ease;
        }
        
        .executor-card.selected {
            border-color: var(--primary);
            background: rgba(52, 152, 219, 0.05);
        }
        
        .executor-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 20px;
            margin-right: 15px;
        }
        
        .executor-info {
            flex: 1;
        }
        
        .executor-name {
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .executor-rating {
            color: var(--warning);
            margin-bottom: 5px;
        }
        
        .executor-stats {
            display: flex;
            font-size: 12px;
            color: var(--gray);
        }
        
        .executor-stats span {
            margin-right: 15px;
        }
        
        .executor-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .btn {
            padding: 8px 15px;
            border-radius: 8px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        
        .btn i {
            margin-right: 5px;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        
        .btn-success {
            background: var(--secondary);
            color: white;
        }
        
        .btn-warning {
            background: var(--warning);
            color: white;
        }
        
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        
        .action-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            padding: 15px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            display: flex;
            gap: 10px;
            max-width: 750px;
            margin: 0 auto;
        }
        
        .action-bar .btn {
            flex: 1;
        }
        
        .dispute-section {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            border-left: 4px solid var(--danger);
        }
        
        .dispute-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: var(--danger);
        }
        
        .dispute-header i {
            margin-right: 10px;
            font-size: 20px;
        }
        
        .dispute-steps {
            padding-left: 20px;
        }
        
        .dispute-step {
            position: relative;
            margin-bottom: 15px;
            padding-left: 30px;
        }
        
        .dispute-step::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f8d7da;
            color: var(--danger);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        
        .dispute-step:nth-child(1)::before { content: '1'; }
        .dispute-step:nth-child(2)::before { content: '2'; }
        .dispute-step:nth-child(3)::before { content: '3'; }
        .dispute-step:nth-child(4)::before { content: '4'; }
        
        .evidence-note {
            background: #e8f4fd;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            font-size: 13px;
            color: var(--primary);
        }
        
        .evidence-note i {
            margin-right: 5px;
        }
        
        .status-indicator {
            display: inline-flex;
            align-items: center;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-active-indicator {
            background: #d4edda;
            color: #155724;
        }
        
        .status-dispute-indicator {
            background: #f8d7da;
            color: #721c24;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="header-top">
                <h1>悬赏任务流程</h1>
                <div class="badge">三阶段结算</div>
            </div>
            <div class="status-indicator status-active-indicator">
                <i class="fas fa-circle"></i> 任务进行中
            </div>
        </div>
        
        <div class="task-info">
            <h2 class="task-title">网站前端界面设计与开发</h2>
            <p class="task-desc">我们需要为电商平台开发一个现代化的前端界面，要求使用React框架，响应式设计，并整合支付功能。需要完成首页、产品列表页、详情页和购物车页面。</p>
            <div class="task-meta">
                <div class="meta-item">
                    <div class="meta-value">¥12,000</div>
                    <div class="meta-label">总悬赏金额</div>
                </div>
                <div class="meta-item">
                    <div class="meta-value">3</div>
                    <div class="meta-label">阶段数</div>
                </div>
                <div class="meta-item">
                    <div class="meta-value">15天</div>
                    <div class="meta-label">预计周期</div>
                </div>
            </div>
        </div>
        
        <div class="stages">
            <h3 class="section-title"><i class="fas fa-tasks"></i> 悬赏阶段设置</h3>
            <div class="stage-timeline">
                <div class="stage-item completed">
                    <div class="stage-header">
                        <div class="stage-name">需求分析与设计</div>
                        <div class="stage-amount">¥3,000</div>
                    </div>
                    <div class="stage-desc">完成需求文档和UI设计稿</div>
                    <div class="stage-status status-completed">已完成</div>
                </div>
                
                <div class="stage-item active">
                    <div class="stage-header">
                        <div class="stage-name">核心功能开发</div>
                        <div class="stage-amount">¥6,000</div>
                    </div>
                    <div class="stage-desc">实现核心页面和功能模块</div>
                    <div class="stage-status status-active">进行中</div>
                </div>
                
                <div class="stage-item">
                    <div class="stage-header">
                        <div class="stage-name">测试与交付</div>
                        <div class="stage-amount">¥3,000</div>
                    </div>
                    <div class="stage-desc">全面测试并交付完整项目</div>
                    <div class="stage-status status-pending">未开始</div>
                </div>
            </div>
        </div>
        
        <div class="executors">
            <h3 class="section-title"><i class="fas fa-users"></i> 执行方申请</h3>
            <div class="executor-list">
                <div class="executor-card selected">
                    <div class="executor-avatar">JS</div>
                    <div class="executor-info">
                        <div class="executor-name">张前端</div>
                        <div class="executor-rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                            <span>4.7</span>
                        </div>
                        <div class="executor-stats">
                            <span><i class="fas fa-check-circle"></i> 98% 完成率</span>
                            <span><i class="fas fa-medal"></i> 专家认证</span>
                        </div>
                    </div>
                    <div class="executor-actions">
                        <button class="btn btn-success">
                            <i class="fas fa-check"></i> 已选择
                        </button>
                    </div>
                </div>
                
                <div class="executor-card">
                    <div class="executor-avatar">WD</div>
                    <div class="executor-info">
                        <div class="executor-name">王设计师</div>
                        <div class="executor-rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                            <span>4.2</span>
                        </div>
                        <div class="executor-stats">
                            <span><i class="fas fa-check-circle"></i> 92% 完成率</span>
                            <span><i class="fas fa-medal"></i> 高级认证</span>
                        </div>
                    </div>
                    <div class="executor-actions">
                        <button class="btn btn-outline">
                            <i class="fas fa-user-plus"></i> 邀请
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="dispute-section">
            <div class="dispute-header">
                <i class="fas fa-exclamation-triangle"></i>
                <h3>纠纷处理流程</h3>
            </div>
            <div class="dispute-steps">
                <div class="dispute-step">任何一方点击"我有异议"，发起纠纷申请</div>
                <div class="dispute-step">平台冻结该阶段交易金额</div>
                <div class="dispute-step">双方通过平台协商解决纠纷</div>
                <div class="dispute-step">协商一致后解锁交易并继续流程</div>
            </div>
            <div class="evidence-note">
                <i class="fas fa-info-circle"></i>
                所有主流对话工具（微信、QQ、钉钉等）的沟通记录均可作为证据链提交，只需证明对方是执行方即可。
            </div>
        </div>
    </div>
    
    <div class="action-bar">
        <button class="btn btn-primary">
            <i class="fas fa-file-alt"></i> 提交阶段成果
        </button>
        <button class="btn btn-warning">
            <i class="fas fa-hand-paper"></i> 我有异议
        </button>
        <button class="btn btn-danger">
            <i class="fas fa-flag"></i> 举报
        </button>
    </div>

    <script>
        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            const disputeBtn = document.querySelector('.btn-warning');
            const executorCards = document.querySelectorAll('.executor-card');
            
            // 纠纷按钮点击效果
            disputeBtn.addEventListener('click', function() {
                alert('您已发起纠纷申请，平台将冻结当前阶段资金并介入处理。请准备相关证据材料。');
                
                // 添加纠纷状态效果
                document.querySelector('.status-indicator').className = 'status-indicator status-dispute-indicator';
                document.querySelector('.status-indicator i').className = 'fas fa-exclamation-circle';
                document.querySelector('.status-indicator').innerHTML = '<i class="fas fa-exclamation-circle"></i> 纠纷处理中';
                
                // 添加冻结提示
                const stageItem = document.querySelector('.stage-item.active');
                stageItem.innerHTML += '<div class="stage-status" style="background:#f8d7da;color:#721c24;margin-top:10px;">资金冻结中</div>';
            });
            
            // 执行方卡片选择效果
            executorCards.forEach(card => {
                card.addEventListener('click', function() {
                    if(!this.classList.contains('selected')) {
                        executorCards.forEach(c => c.classList.remove('selected'));
                        this.classList.add('selected');
                        
                        const selectedName = this.querySelector('.executor-name').textContent;
                        alert('已选择执行方: ' + selectedName);
                    }
                });
            });
        });
    </script>
</body>
</html>